﻿@model Medart.Models.Event

@{
    Layout = null;
}

<!DOCTYPE html>
<html lang="en">
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=300px, initial-scale=1, maximum-scale=1">


    <link type="text/css" rel="stylesheet" href="../content/css/golden-forms.css" />
    <link type="text/css" rel="stylesheet" href="../content/css/font-awesome.min.css" />
    @{
    String sss = "checked";
    }

    @if (ViewBag.doctor == null || ViewBag.customer == null)
    {

        Response.Write(" <script type='text/javascript'>window.close();</script>");
       
    }
</head>
@if(ViewBag.doctor != null && ViewBag.customer != null)
{
    
<text>
<body class="bg-linen" dir="rtl">


    <div >



        <div class="golden-forms wrapper">
            <div class="form-title">
                <h2>
                    تفاصيل الموعد
                    Booking Details
                </h2>
            </div><!-- end .form-title section -->

    @using (Html.BeginForm("Save", "BasicScheduler", new { id = "BasicScheduler" }))
    { 

        
    
     <div class="form-enclose">
                    <div class="form-section">
                        <section>
                            <div class="row">
                                <div class="col6 first">
                                    <label for="fnames" class="lbl-text">Room - الغرفه</label>
                                    <label class="lbl-ui">
                                        <label for="check">@ViewBag.room.label</label>
                                    </label>
                                </div><!-- end .col6 section -->
                                <div class="col6 last colspacer-two">
                                    <label for="fnames" class="lbl-text">Therapist - المعالج</label>
                                    <label class="lbl-ui">
                                        <label for="check">
                                        @if (ViewBag.doctor != null && ViewBag.doctor.Arabic != null)
                                        {
                                             @ViewBag.doctor.Arabic 
                                        }
                                      
                                             -
                                            @if (ViewBag.doctor != null && ViewBag.doctor.English != null)
                                            {
                                              @ViewBag.doctor.English
                                            }
                                        
                                        </label>

                                    </label>
                                </div><!-- end .col6 section -->
                            </div><!-- end .row section-->
                        </section>
                        <section>
                            <div class="row">
                                <div class="col6 first">
                                    <label for="fnames" class="lbl-text">Patient - الاسم</label>
                                    <label for="check">@ViewBag.customer.arabicName</label>
                                </div><!-- end .col6 section -->
                                <div class="col6 last colspacer-two">
                                    <label for="fnames" class="lbl-text">Patient - الاسم</label>
                                    <label for="check">@ViewBag.customer.englishName</label>
                                </div><!-- end .col6 section -->
                            </div><!-- end .row section-->
                        </section>
                        <section>
                            <div class="row">
                                <div class="col6 first">
                                    <label for="fnames" class="lbl-text">Record Number - رقم الملف</label>
                                    <label for="check">@ViewBag.customer.recordNumber</label>
                                </div><!-- end .col6 section -->
                                <div class="col6 last colspacer-two">
                                    <label for="fnames" class="lbl-text">Mobile - الجوال</label>
                                    <label for="check">@ViewBag.customer.mobile</label>
                                </div><!-- end .col6 section -->
                            </div><!-- end .row section-->
                        </section>
                        <section>
                            <div class="row">
                                <div class="col6 first">
                                    <label for="coname" class="lbl-text">التصنيف  -  Label</label>
                                    <label for="country" class="lbl-ui select">
                                        @Html.DropDownList("color");
                                    </label>

                                </div><!-- end .col6 section -->
                                <div class="col6 last colspacer-two">
                                    <label for="opts1" class="lbl-text spacer">حالة الموعد - Status</label>
      
                                    <div class="option-group">

                                        <span class="goption">
                                            <label class="options">
                                                <input type="radio" id="option1" name="status1" value="1" 
                                                       
                                                       @if(Model.confirmed != null && Model.confirmed != 0)
                                                       {
                                                           <text>
                                                        checked
                                                       </text>
                                                       }
                                                       >
                                                <span class="radio"></span>
                                            </label>
                                            <label for="option1">مؤكد - Confirmed</label>
                                        </span><!-- end .goption section -->

                                        <span class="goption">
                                            <label class="options">
                                                <input type="radio" id="option1" name="status1" value="0"
                                                       @if (Model.confirmed == null || Model.confirmed == 0) {                                                           <text>
                                                       checked
                                                       </text>   }>

                                                <span class="radio"></span>
                                            </label>
                                            <label for="option2">غير مؤكد - Uncomfired</label>
                                        </span><!-- end .goption section -->


                                    </div><!-- end .option-group section -->                 
                                </div>
                            </div><!-- end .col6 section -->

                        </section>
                        <section>
                            <div class="row">
                                <div class="col6 first">

                                    <label for="fnames" class="lbl-text">To - الى</label>
                                    <label for="country">
                                        @Html.DropDownList("toMinList")
                                    </label>
                                    :
                                    <label for="country">
                                        @Html.DropDownList("toHourList")
                                    </label>

                                </div><!-- end .col6 section -->
                                <div class="col6 last colspacer-two">
                                    <label for="fnames" class="lbl-text">From - من</label>
                                    <label for="country">
                                        @Html.DropDownList("fromMinList")
                                    </label>
                                    :
                                    <label for="country">
                                        @Html.DropDownList("fromHourList")
                                    </label>
                                </div><!-- end .col6 section -->
                            </div><!-- end .row section-->
                        </section>
                        <section>
                            <div class="row">
                  

                                    @Html.TextAreaFor(m => m.text, 5, 42, null)

           
                            </div><!-- end .row section-->
                        </section>
                        <section>
                            <div class="row">
                                <div class="col6 first">

       

                                </div><!-- end .col6 section -->
                                <div class="col6 last colspacer-two">
                                    <input type="submit" name="actionButton" value="Save - حفظ" class="button blue" />
                                    <input type="button" class="button blue" onclick="lightbox.close()/* helper-method, only available in custom lightbox */" value="Close - اغلق" />
                                    <input type="submit" name="actionButton" value="Cancel  - الغاء" class="button blue" />

                                </div><!-- end .col6 section -->
                            </div><!-- end .row section-->
                        </section>
                        <!-- end .form-enclose section -->
                        <div class="form-buttons">
                            <section>
                                <input type="hidden" id="end_date" name="end_date" value="@Model.end_date" />
                                <input type="hidden" id="start_date" name="start_date" value="@Model.start_date" />
                                <input type="hidden" id="patID" name="patID" value="@Model.patID" />
                                <input type="hidden" id="docID" name="docID" value="@Model.docID" />
                                <input type="hidden" id="roomID" name="roomID" value="@Model.roomID" />
                                <input type="hidden" id="id" name="id" value="@Model.id" />
       
                                
                            </section>
                        </div><!-- end .form-buttons section -->
    
        </div><!-- end .golden-forms section -->
    </div><!-- end .gforms section -->
            }
    </div><!-- end section -->
    </div><!-- end section -->

</body>
</text>
}else
{
    
    <text>

Please make selection first 
<input type="button" class="button blue" onclick="lightbox.close()/* helper-method, only available in custom lightbox */" value="Close - اغلق" />

</text>
    
    
}
</html>